/*
 * Copyright (c) 2009 Nokia Corporation.
 */

#include "qlogger.h"

namespace ListEm
{
    QLogger::QLogger(QObject* parent)
        : QObject(parent)
    {
        m_prefix = "JS";
        m_time.start();
    }

    QLogger::~QLogger()
    {
    }


    void QLogger::debug(const QString& message)
    {
        qDebug() << m_prefix << m_time.elapsed() << " debug:"  << message;
    }

    void QLogger::info(const QString& message)
    {
        qDebug() << m_prefix << m_time.elapsed() << " info:" << message;
    }

    void QLogger::warning(const QString& message)
    {
        qWarning() << m_prefix << m_time.elapsed() << " warning:" << message;
    }

    void QLogger::critical(const QString& message)
    {
        qCritical() << m_prefix << m_time.elapsed() << " critical:" << message;
    }
}
